-- GENERATED SPELL FOR [Strashaz Myrmidon] --


function spell0_4368(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4368', 595, 1)
end

function spell1_4368(pUnit, Event) --@Knockdown,n/a--
pUnit:FullCastSpellOnTarget(18812,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4368', 2000, 1)
end

function Sorts_4368(pUnit, Event)
local choix_sorts_4368 = math.random(0, 1)
if choix_sorts_4368 == 0 then
pUnit:RegisterEvent('spell0_4368', 1, 1)
end
if choix_sorts_4368 == 1 then
pUnit:RegisterEvent('spell1_4368', 1, 1)
end
end

function mob4368_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4368', math.random(1500, 3000), 1)
end

function mob4368_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4368_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4368_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4368, 1, 'mob4368_Action')
RegisterUnitEvent(4368, 2, 'mob4368_Leave')
RegisterUnitEvent(4368, 3, 'mob4368_Kill')
RegisterUnitEvent(4368, 4, 'mob4368_Die')
